package org.gorson.function;


import org.apache.flink.api.common.functions.FilterFunction;
import org.gorson.BO.AssetDetailBO;

public class FilterAlipayFunction implements FilterFunction<AssetDetailBO> {
    private final String matchLetter = "\\d+[0-9]-[0-9][0-9]?-[0-9][0-9]?.*";
    @Override
    public boolean filter(AssetDetailBO assetDetailBO) throws Exception {
        return assetDetailBO.getTransDate().matches(matchLetter);
    }
}
